package com.onedec.camera.service.impl;

import com.onedec.camera.entity.OnedecProject;
import com.onedec.camera.entity.OnedecProjectExample;
import com.onedec.camera.mapper.OnedecProjectMapper;
import com.onedec.camera.service.DeptService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class DeptServiceImpl implements DeptService {
@Autowired
    private OnedecProjectMapper onedecProjectMapper;

    @Override
    public List<OnedecProject> selectBySts() {
        OnedecProjectExample example = new OnedecProjectExample();
        OnedecProjectExample.Criteria or = example.or();
        or.andProjectStsEqualTo(1);
        return onedecProjectMapper.selectByExample(example);
    }
}
